{{ if isset .Site.Params "emails" }}
{{ if .Site.Params.emails.enable }}

<div class="e_mail">
        <h2>{{ i18n "main_email_subscribe_title" }}</h2>
        <ul>
                {{ $mls := .Paginate (where .Data.Pages "Type" "maillist") }}
                {{ $sortedmls :=  $mls.Pages.ByParam "weight" }}
                {{ range first 1 $sortedmls}}
                <li>
                        <div>
                                <h3><a href="mailto:{{ .Params.emailaddress }}">{{ .Params.emailaddress }}</a></h3>
                                <p> {{ .Params.description }}</p>
                        </div>

                        <a href="{{ .Params.websitelink}}" target="_blank">
                                <div class="btn">{{ i18n "main_email_subscribe_buttontext" }} </div>
                        </a>
                </li>
                {{ end }}
        </ul>
        <h3 >{{i18n "main_mail_more"}}<a href='{{i18n "main_mail_more_link"}}' style="color:white;">{{i18n "main_mail_more_list"}}</a></h3>
</div>

{{ end }}
{{ end }}